package com.study.zouchao.superproject.homepage.contract;

import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.bigkoo.convenientbanner.ConvenientBanner;
import com.study.zouchao.superproject.homepage.adapter.MyExpandableListViewAdapter;


/**
 * Created by Administrator on 2017/5/15.
 */

public class IHomePageContract {
    public interface IHomePagePresenter {
        void connAdPic();
        void connData();
        void onRefreshingData();
        void loadData();
        void setOnChildListener(MyExpandableListViewAdapter.IOnChildItemClickListener listener);

        void loadSeeMore();
        void initRecyclerView(RecyclerView rv);
        void onDestroyPresente();
        void showRefreshingLoading(boolean isShow);
        void showSeeMoreLoading(boolean isShow);
        void setSeeMoreLoading(View footerLoadingView);
    }
    public interface IHomePageView {
        //得到轮播图
        ConvenientBanner getConvenientBanner();
        //设置
        void setExpanableListViewAdapter(MyExpandableListViewAdapter adapter);
        //
        void showRefreshingAnimation(boolean isShow);

        void setSeeMoreLoading(View footerLoadingView);

        void showSnackBar(String title);

        void showSnackBar(String title, int showLength);
    }
}
